package com.mes.cloud.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 产品
 *
 * @author xy
 * @version 2019-08-20 14:30:12
 * @email yuan.xue3@pactera.com
 */
@Data
@Table(name = "product")
public class Product implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @Id
    private String id;
    /**
     * 编码
     */
    @Column(name = "code")
    private String code;
    /**
     * 名称
     */
    @Column(name = "name")
    private String name;
    /**
     * 产品类型(字典:1.成品 2.流通商品 3.低值易耗品 4.半成品 5.辅助材料)
     */
    @Column(name = "type")
    private String type;
    /**
     * 目录id
     */
    @Column(name = "product_directory_id")
    private String productDirectoryId;
    /**
     * 外部编码
     */
    @Column(name = "outside_code")
    private String outsideCode;
    /**
     * 条形码
     */
    @Column(name = "bar_code")
    private String barCode;
    /**
     * 产品规格，最小单位的规格
     */
    @Column(name = "specifications")
    private String specifications;
    /**
     * 货箱包装
     */
    @Column(name = "container_packing")
    private String containerPacking;
    /**
     * 标识产品code
     */
    @Column(name = "zcpbs")
    private String zcpbs;
    /**
     * 单位
     */
    @Column(name = "meins")
    private String meins;
    /**
     * 数据来源(1.SAP 2.FSFA 3.CRM)
     */
    @Column(name = "source")
    private String source;
    /**
     * 是否促销(Y/N)
     */
    @Column(name = "promotion_flag")
    private String promotionFlag;
    /**
     * 保质期
     */
    @Column(name = "quality_guarantee_period")
    private String qualityGuaranteePeriod;
    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark;
    /**
     * 状态(0：禁用，1：启用)
     */
    @Column(name = "enable_flag")
    private String enableFlag;
    /**
     * 创建人
     */
    @Column(name = "create_by")
    private String createBy;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;
    /**
     * 修改人
     */
    @Column(name = "update_by")
    private String updateBy;
    /**
     * 修改时间
     */
    @Column(name = "update_time")
    private Date updateTime;
    /**
     * 删除标记，1：删除，0：未删除
     */
    @Column(name = "del_flag")
    private String delFlag;
    /**
     * 更新日期
     */
    @Column(name = "update_date_str")
    private String updateDateStr;
    /**
     * 版本
     */
    @Column(name = "version")
    private Integer version;
 /*   *//**
     * 品牌名称
     *//*
    @Column(name = "brand_name")
    private String brandName;
    *//**
     * 品类名称
     *//*
    @Column(name = "category_name")
    private String categoryName;*/
    /**
     * 品牌id
     */
    @Column(name = "brand_id")
    private String brandId;

    @Column(name = "create_by_no")
    private String createByNo;

    @Column(name = "update_by_no")
    private String updateByNo;
}
